package com.briup.corejava.day09.pojo;
// 静态导入
import static java.lang.Math.PI;

public class Circle extends Shape{
    private int radius;

    public Circle(String name, int radius) {
        super(name);
        this.radius = radius;
    }

    @Override
    public double getArea() {
        return radius*radius*PI;
    }
}
